//
//  BKScrollView.h
//  Pods
//
//  Created by baboy on 1/15/13.
//
//

#import <UIKit/UIKit.h>
enum {
	BKDragStateUnInit = 0,
	BKDragStateDraging,
	BKDragStateDragBeyond,
	BKDragStateRelease,
	BKDragStateLoading,
	BKDragStateLoadFinished,
	BKDragStateLoadError
};
typedef int BKDragState;

enum  {
    BKDragLocationTop ,
    BKDragLocationBottom
};
typedef int BKDragLocation;


@interface BKDragView : UIView
@property (nonatomic, assign) BKDragState state;
@property (nonatomic, assign) BKDragLocation location;
- (float)activeHeight;
@end

@interface BKScrollView : UIScrollView<UIScrollViewDelegate>
@property (nonatomic, assign, getter = isSupportLoadMore) BOOL supportLoadMore;
@property (nonatomic, assign, getter = isSupportUpdate) BOOL supportUpdate;
- (void) startUpdate;
- (void) startLoadMore;
- (void) updateFinished;
@end

@protocol BKScrollViewDelegate <NSObject>
@optional
- (void)update:(id)scrollView;
- (void)loadMore:(id)scrollView;
@end
